// --------------------------------------------------
// 步骤
// @Author: steven.wjx
// @Date:   2020-03-05 13:17:50
// --------------------------------------------------
.#{$ui-name}step {
	.#{$ui-name}step-item {
		position: relative;
		@include inline-block;
		font-size: 0;
		min-width: 200px;

		.#{$ui-name}step-tail {
			width: 100%;
			border-top: 1px solid $border-color;
			position: absolute;
			left: 22px;
			top: 11px;
			z-index: 99;
		}

		.#{$ui-name}step-head {
			width: 10px;
			height: 10px;
			background-color: #fff;
			border-radius: 50%;
			border: 1px solid transparent;
			position: absolute;
			top: 2px;
			border-color: $primary-color;
			color: $primary-color;
			z-index: 99;
		}

		.#{$ui-name}step-icon {
			width: 20px;
			height: 20px;
			line-height: 20px;
			border-radius: 50%;
			border: 1px solid $text-color-disabled;
			background-color: #fff;
			position: absolute;
			top: 0;
			left: 0;
			z-index: 99;
			font-size: 12px;
			text-align: center;
			color: $text-color-disabled;
		}

		.#{$ui-name}step-block {
			@include inline-block;
			margin-left: 22px;
			padding: 0 10px 0 0;
			font-size: $font-size;
			line-height: 22px;

			.#{$ui-name}step-title {
				position: relative;
				padding: 0 10px;
				@include inline-block;
				margin-top: 0;
				margin-bottom: 0;
				font-size: 14px;
				font-weight: 400;
				background-color: #fff;
				z-index: 100;
			}

			.#{$ui-name}step-text {
				padding-left: 10px;
				margin-top: 0;
				margin-bottom: 0;
				font-size: 12px;
				color: $text-color-secondary;
			}

			.#{$ui-name}step-date {
				margin-top: 5px;
				font-size: 13px;
				font-weight: 500;

				>small {
					font-weight: 400;
					color: #1ab394;
				}
			}
		}


		&.#{$ui-name}step-finished {
			.#{$ui-name}step-icon {
				border-color: $success-color;
				color: $success-color;
			}
		}

		&.#{$ui-name}step-progress {
			.#{$ui-name}step-icon {
				border-color: $primary-color;
				background-color: $primary-color;
				color: #fff;
			}
		}

		&.#{$ui-name}step-wait {
			.#{$ui-name}step-icon {
				border-color: $text-color-disabled;
				color: $text-color-disabled;
			}
		}

	}
	&.#{$ui-name}step-vertical {
		.#{$ui-name}step-item {
			display: block;
		}
		.#{$ui-name}step-tail {
			left: 11px;
			top: 0;
			border-top-width: 0;
			border-left: 1px solid $border-color;
			height: 100%;
			width: 0;
		}
		.#{$ui-name}step-block {
			margin-bottom: 10px;
		}
	}
}